package com.study.concurrent.B_ThreadSynchronizedBasic.d_UseConditionsInSynchronizedCodes;

/**
 * Created by 赵超 on 2017/3/22.
 */
public class Main {
    public static void main(String[] args) {
        EventStorage storage = new EventStorage();

        Producer producer = new Producer(storage);
        Thread thread_producer = new Thread(producer);

        Consumer consumer = new Consumer(storage);
        Thread thread_consumer = new Thread(consumer);

        thread_producer.start();
        thread_consumer.start();

    }
}
